﻿using Nantianmen.Domain.Models;
using System.ComponentModel.DataAnnotations;

namespace Nantianmen.Endpoints.Routes
{
    public class SaveRouteRequest
    {
        [Required(AllowEmptyStrings = false)]
        public string Id { get; set; } = default!;
        public int? Order { get; set; }
        public string? ClusterId { get; set; }
        public RouteMatch? Match { get; set; }
        public long? MaxRequestBodySize { get; set; }
        public string? CorsPolicy { get; set; }
        public string? AuthorizationPolicy { get; set; }
        public Dictionary<string, string>? Metadata { get; set; }
        public List<Dictionary<string, string>>? Transforms { get; set; }
    }
}